package com.myBlog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myBlog.domain.ResponseResult;
import com.myBlog.domain.dto.UserDTO;
import com.myBlog.domain.entity.User;
import com.myBlog.domain.vo.PageVo;

import java.util.List;

public interface UserService extends IService<User> {
    /**
     * 条件分页查询用户
     *
     * @param pageNum
     * @param pageSize
     * @param userDTO
     * @return
     */
    ResponseResult<PageVo> list(Integer pageNum, Integer pageSize, UserDTO userDTO);

    /**
     * 根据id查询用户信息
     *
     * @param userId
     * @return
     */
    ResponseResult getUserInfo(Long userId);

    /**
     * 添加用户
     *
     * @param userDTO
     * @return
     */
    ResponseResult addUser(UserDTO userDTO);

    /**
     * 根据ids删除用户
     *
     * @param ids
     * @return
     */
    ResponseResult deleteById(List<Long> ids);

    /**
     * 修改用户
     *
     * @param userDTO
     * @return
     */
    ResponseResult updateUser(UserDTO userDTO);
}
